package com.bw.user_module.forget;

import com.bw.common.mvvm.model.BaseRespository;
import com.bw.network_sdk.BaseEntity;
import com.bw.network_sdk.HttpType;
import com.bw.network_sdk.NetWorkFactory;

import java.util.Map;

import io.reactivex.Observable;

public class ForgetRespository extends BaseRespository {

    Observable<BaseEntity>requestForget(Map<String,Object>map){
        Observable<ForgetEntity>forgetEntityObservable=
                NetWorkFactory.factory(HttpType.TOKENSIGN)
                        .create(ApiService.class)
                        .requestForget(createBody(map));
        return checkNetWork(forgetEntityObservable);
    }

}
